<template>
  <el-dialog
    class="delete-dialog"
    width="300px"
    :title="text.type"
    :visible="isShow"
    destroy-on-close
  >
    <span>{{text.msg }}</span>
    <el-input v-model="msg"></el-input>
    <div slot="footer" class="dialog-footer">
      <el-button @click="confirm">{{text.btn.confirm}}</el-button>
      <el-button type="info" @click="cancel">{{text.btn.cancel}}</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      isShow: true,
      text: {
        type: "提示",
        msg: "确定删除此条信息？",
        btn: {
          confirm: "确定",
          cancel: "取消",
        },
      },
      msg: "123123123",
    };
  },
  methods: {
    cancel() {},
    confirm() {},
  },
};
</script>
<style scoped>
</style>